package com.stedu;

import com.stedu.mapper.StudentOperateMapper;
import com.stedu.service.StudentOperateService;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest
public class SelectClassApplicationTests5 {
    @Autowired
    private StudentOperateMapper studentOperateMapper;
    @Autowired
    private StudentOperateService studentOperateService;

    @Test
    public void test1(){
        //studentOperateMapper.selectAllTeacherAndCourse().forEach(System.out::println);
        studentOperateService.selectAllTeacherAndCourse().forEach(System.out::println);
    }
    @Test
    public void test2(){
        System.out.println(studentOperateMapper.selectBySno("21061811"));
    }
    @Test
    public void test3(){
        studentOperateService.selectedTeacherAndCourse("21061811").forEach(System.out::println);
    }
    @Test
    public void test4(){
        System.out.println(studentOperateMapper.studentSid("21061812"));
    }
    @Test
    public void test5(){
        studentOperateMapper.deleteSidAndTidBySidAndTid(1,1);
    }
    @Test
    public void test6(){
        studentOperateMapper.insertSidAndTid(1,1);
    }
}
